table of contents
GIT-TAR-TREE(1) | Git Manual | GIT-TAR-TREE(1) |
NAME¶
git-tar-tree - Create a tar archive of the files in the named tree object
SYNOPSIS¶
git tar-tree [--remote=<repo>] <tree-ish> [ <base> ]
DESCRIPTION¶
THIS COMMAND IS DEPRECATED. Use git archive with --format=tar option instead (and move the <base> argument to --prefix=base/).
Creates a tar archive containing the tree structure for the named tree. When <base> is specified it is added as a leading path to the files in the generated tar archive.
git tar-tree behaves differently when given a tree ID versus when given a commit ID or tag ID. In the first case the current time is used as modification time of each file in the archive. In the latter case the commit time as recorded in the referenced commit object is used instead. Additionally the commit ID is stored in a global extended pax header. It can be extracted using git get-tar-commit-id.
OPTIONS¶
<tree-ish>
<base>
--remote=<repo>
CONFIGURATION¶
tar.umask
EXAMPLES¶
git tar-tree HEAD junk | (cd /var/tmp/ && tar xf -)
git tar-tree v1.4.0 git-1.4.0 | gzip >git-1.4.0.tar.gz
git tar-tree v1.4.0^{tree} git-1.4.0 | gzip >git-1.4.0.tar.gz
git tar-tree --remote=example.com:git.git v1.4.0 >git-1.4.0.tar
git tar-tree HEAD:Documentation/ git-docs > git-1.4.0-docs.tar
AUTHOR¶
Written by Rene Scharfe.
DOCUMENTATION¶
Documentation by David Greaves, Junio C Hamano and the git-list <git@vger.kernel.org[1]>.
GIT¶
Part of the git(1) suite
NOTES¶
- 1.
- git@vger.kernel.org
02/03/2020 | Git 1.7.1 |